package com.jiyun.pojo.order;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@ToString
public class OrderList {
    //主键ID
    private Integer id;
    //订单编号
    private String orderId;
//    //订单类型（1.实时白叫车2.实时代叫车，3.实时货运，4.预约白叫车5.预约代叫车6.预约货运）
//    private Integer orderType;
    //用户id(外键)
    private Integer userId;
    //司机id(外键)
    private Integer driverId;
//    //乘客姓名
//    private String passengerName;
//    //乘客手机号
//    private String passengerPhone;
//    //出发点(经纬度)
//    private String startingPoint;
//    //目的地(经纬度)
//    private String destination;
    //订单状态(0未完成,1待付款,2已完成,3已取消)
    private Integer orderStatus;
//    //订单里程
//    private String orderMileage;
//    //司机评价id(外键)
//    private Integer driverAppraiseId;
//    //司机投诉id(外键)
//    private Integer driverComplaintsId;
//    //用户投诉id(外键)
//    private Integer userComplaintsId;
//    //聊天id(外键)
//    private Integer chatId;
    //出发地地址
    private String startingPointAddress;
    //目的地地址
    private String destinationAddress;
//    //订单取消原因
//    private String closeCause;
//    //订单等待时间
//    private String waitOrderTime;
    //订单发出时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime orderTime;
    //司机头像
    private String driverImgurl;
    //司机姓名
    private String driverName;
    //司机评分
    private Integer driverPoint;
    //车牌号
    private String carNumber;
    //车辆颜色
    private String carColor;
    //车辆名称
    private String carName;
    //总价钱
    private BigDecimal passengerTotal;
    //取消原因
    private String closeCause;
}

